package com.fymxy.question_bank_management.mapper;

import com.fymxy.question_bank_management.pojo.Paper2course;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface Paper2courseMapper {

    @Delete("delete from paper2course where course_no = #{courseNo}")
    int deleteByCourseKey(Integer courseNo);

    int insert(Paper2course record);

    int insertSelective(Paper2course record);


    Paper2course selectByPrimaryKey(Integer courseNo);

    int updateByPrimaryKeySelective(Paper2course record);

    int updateByPrimaryKey(Paper2course record);
}